package cn.tedu.yitu.common.web;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
public enum ServiceCodeEnum {
    SUCCESS(1000, "操作成功"),
    FAIL(2000, "操作失败"),
    USERNAME_ALREADY_EXISTS(3000,"手机号码已注册");

    private Integer code;
    private String msg;

    ServiceCodeEnum(Integer code,String msg){
        this.code = code;
        this.msg = msg;
    }

}
